package com.example.sqlitedemo.sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class DBManage {
    private static MySQLiteHelper helper;

    public static MySQLiteHelper getHelper(Context context){
        if (helper == null){
            helper = new MySQLiteHelper(context);
        }
        return helper;
    }

    public static void execSQL(SQLiteDatabase db, String sql){
        if(!sql.equals("") && db != null){
            db.execSQL(sql);
        }
    }
}
